using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN ConfigsServiceBase****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:12/09/2010 36:08:02</para>
	/// <para>Class Name: ConfigsServiceBase</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class ConfigsService : IConfigsService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: ConfigName</para>
		/// <para>Output: ConfigsEntity</para>
		///</summary>
		public ConfigsEntity SelectOne(string ConfigName){
			ConfigsDAO dao = new ConfigsDAO();
			return dao.SelectOne(ConfigName);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of ConfigsEntity</para>
		///</summary>
		public List<ConfigsEntity> SelectAll(){
			ConfigsDAO dao = new ConfigsDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			ConfigsDAO dao = new ConfigsDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of ConfigsEntity</para>
		///</summary>
		public List<ConfigsEntity> SelectAllFilter(string strFilter){
			ConfigsDAO dao = new ConfigsDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			ConfigsDAO dao = new ConfigsDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: Save</para>
		/// <para>Input: ConfigsEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(ConfigsEntity o){
			ConfigsDAO dao = new ConfigsDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: Save</para>
		/// <para>Input: ConfigsEntity</para>
		/// <para>Output: ConfigsEntity</para>
		///</summary>
		public ConfigsEntity SaveRet(ConfigsEntity o){
			ConfigsDAO dao = new ConfigsDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of ConfigsEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<ConfigsEntity> list){
			ConfigsDAO dao = new ConfigsDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of ConfigsEntity</para>
		/// <para>Output: List of ConfigsEntity</para>
		///</summary>
		public List<ConfigsEntity> SaveListRet(List<ConfigsEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: Update</para>
		/// <para>Input: ConfigsEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(ConfigsEntity o){
			ConfigsDAO dao = new ConfigsDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of ConfigsEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<ConfigsEntity> list){
			ConfigsDAO dao = new ConfigsDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: UpdateConfigName</para>
		/// <para>Input: NewConfigName,ConfigName</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateConfigName(string NewConfigName,string ConfigName){
			ConfigsDAO dao = new ConfigsDAO();
			return dao.UpdateConfigName(NewConfigName,ConfigName);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: UpdateConfigValue</para>
		/// <para>Input: NewConfigValue,ConfigName</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateConfigValue(string NewConfigValue,string ConfigName){
			ConfigsDAO dao = new ConfigsDAO();
			return dao.UpdateConfigValue(NewConfigValue,ConfigName);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: Delete</para>
		/// <para>Input: ConfigsEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(ConfigsEntity o){
			ConfigsDAO dao = new ConfigsDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: ConfigName</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(string ConfigName){
			ConfigsDAO dao = new ConfigsDAO();
			return dao.DeleteByID(ConfigName);
		}
		#endregion

		#region Select,delete by ConfigName functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END ConfigsWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

